﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000AD RID: 173
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ANPOBIAEFDJ : IMessage<ANPOBIAEFDJ>, IMessage, IEquatable<ANPOBIAEFDJ>, IDeepCloneable<ANPOBIAEFDJ>, IBufferMessage
	{
		// Token: 0x1700022E RID: 558
		// (get) Token: 0x060007B5 RID: 1973 RVA: 0x0001641D File Offset: 0x0001461D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ANPOBIAEFDJ> Parser
		{
			get
			{
				return ANPOBIAEFDJ._parser;
			}
		}

		// Token: 0x1700022F RID: 559
		// (get) Token: 0x060007B6 RID: 1974 RVA: 0x00016424 File Offset: 0x00014624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ANPOBIAEFDJReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000230 RID: 560
		// (get) Token: 0x060007B7 RID: 1975 RVA: 0x00016436 File Offset: 0x00014636
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ANPOBIAEFDJ.Descriptor;
			}
		}

		// Token: 0x060007B8 RID: 1976 RVA: 0x0001643D File Offset: 0x0001463D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ANPOBIAEFDJ()
		{
		}

		// Token: 0x060007B9 RID: 1977 RVA: 0x00016448 File Offset: 0x00014648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ANPOBIAEFDJ(ANPOBIAEFDJ other) : this()
		{
			this.level_ = other.level_;
			this.promotion_ = other.promotion_;
			this.rank_ = other.rank_;
			this.tid_ = other.tid_;
			this.exp_ = other.exp_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060007BA RID: 1978 RVA: 0x000164A8 File Offset: 0x000146A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ANPOBIAEFDJ Clone()
		{
			return new ANPOBIAEFDJ(this);
		}

		// Token: 0x17000231 RID: 561
		// (get) Token: 0x060007BB RID: 1979 RVA: 0x000164B0 File Offset: 0x000146B0
		// (set) Token: 0x060007BC RID: 1980 RVA: 0x000164B8 File Offset: 0x000146B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17000232 RID: 562
		// (get) Token: 0x060007BD RID: 1981 RVA: 0x000164C1 File Offset: 0x000146C1
		// (set) Token: 0x060007BE RID: 1982 RVA: 0x000164C9 File Offset: 0x000146C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Promotion
		{
			get
			{
				return this.promotion_;
			}
			set
			{
				this.promotion_ = value;
			}
		}

		// Token: 0x17000233 RID: 563
		// (get) Token: 0x060007BF RID: 1983 RVA: 0x000164D2 File Offset: 0x000146D2
		// (set) Token: 0x060007C0 RID: 1984 RVA: 0x000164DA File Offset: 0x000146DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Rank
		{
			get
			{
				return this.rank_;
			}
			set
			{
				this.rank_ = value;
			}
		}

		// Token: 0x17000234 RID: 564
		// (get) Token: 0x060007C1 RID: 1985 RVA: 0x000164E3 File Offset: 0x000146E3
		// (set) Token: 0x060007C2 RID: 1986 RVA: 0x000164EB File Offset: 0x000146EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Tid
		{
			get
			{
				return this.tid_;
			}
			set
			{
				this.tid_ = value;
			}
		}

		// Token: 0x17000235 RID: 565
		// (get) Token: 0x060007C3 RID: 1987 RVA: 0x000164F4 File Offset: 0x000146F4
		// (set) Token: 0x060007C4 RID: 1988 RVA: 0x000164FC File Offset: 0x000146FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Exp
		{
			get
			{
				return this.exp_;
			}
			set
			{
				this.exp_ = value;
			}
		}

		// Token: 0x060007C5 RID: 1989 RVA: 0x00016505 File Offset: 0x00014705
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ANPOBIAEFDJ);
		}

		// Token: 0x060007C6 RID: 1990 RVA: 0x00016514 File Offset: 0x00014714
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ANPOBIAEFDJ other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.Promotion == other.Promotion && this.Rank == other.Rank && this.Tid == other.Tid && this.Exp == other.Exp && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060007C7 RID: 1991 RVA: 0x00016590 File Offset: 0x00014790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Promotion != 0U)
			{
				num ^= this.Promotion.GetHashCode();
			}
			if (this.Rank != 0U)
			{
				num ^= this.Rank.GetHashCode();
			}
			if (this.Tid != 0U)
			{
				num ^= this.Tid.GetHashCode();
			}
			if (this.Exp != 0U)
			{
				num ^= this.Exp.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060007C8 RID: 1992 RVA: 0x00016633 File Offset: 0x00014833
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060007C9 RID: 1993 RVA: 0x0001663B File Offset: 0x0001483B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060007CA RID: 1994 RVA: 0x00016644 File Offset: 0x00014844
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Exp != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Exp);
			}
			if (this.Tid != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Tid);
			}
			if (this.Rank != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Rank);
			}
			if (this.Promotion != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Promotion);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060007CB RID: 1995 RVA: 0x000166F4 File Offset: 0x000148F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Promotion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Promotion);
			}
			if (this.Rank != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Rank);
			}
			if (this.Tid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Tid);
			}
			if (this.Exp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Exp);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060007CC RID: 1996 RVA: 0x00016794 File Offset: 0x00014994
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ANPOBIAEFDJ other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Promotion != 0U)
			{
				this.Promotion = other.Promotion;
			}
			if (other.Rank != 0U)
			{
				this.Rank = other.Rank;
			}
			if (other.Tid != 0U)
			{
				this.Tid = other.Tid;
			}
			if (other.Exp != 0U)
			{
				this.Exp = other.Exp;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060007CD RID: 1997 RVA: 0x00016820 File Offset: 0x00014A20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060007CE RID: 1998 RVA: 0x0001682C File Offset: 0x00014A2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 16U)
					{
						this.Exp = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.Tid = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.Rank = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.Promotion = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040002DB RID: 731
		private static readonly MessageParser<ANPOBIAEFDJ> _parser = new MessageParser<ANPOBIAEFDJ>(() => new ANPOBIAEFDJ());

		// Token: 0x040002DC RID: 732
		private UnknownFieldSet _unknownFields;

		// Token: 0x040002DD RID: 733
		public const int LevelFieldNumber = 14;

		// Token: 0x040002DE RID: 734
		private uint level_;

		// Token: 0x040002DF RID: 735
		public const int PromotionFieldNumber = 11;

		// Token: 0x040002E0 RID: 736
		private uint promotion_;

		// Token: 0x040002E1 RID: 737
		public const int RankFieldNumber = 8;

		// Token: 0x040002E2 RID: 738
		private uint rank_;

		// Token: 0x040002E3 RID: 739
		public const int TidFieldNumber = 7;

		// Token: 0x040002E4 RID: 740
		private uint tid_;

		// Token: 0x040002E5 RID: 741
		public const int ExpFieldNumber = 2;

		// Token: 0x040002E6 RID: 742
		private uint exp_;
	}
}
